﻿<!DOCTYPE HTML>
<html>
<head>
<title>add-in-car</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<%=request.getContextPath() %>/resources/css/cart/style.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resources/css/cart/bootstrap.min.css">
<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/cart/jquery1.min.js"></script>
<!-- start menu -->
<link href="<%=request.getContextPath() %>/resources/css/car/megamenu.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="<%=request.getContextPath() %>/resources/js/cart/megamenu.js"></script>
<script>$(document).ready(function(){$(".megamenu").megamenu();});</script>
<!-- dropdown -->
<script src="<%=request.getContextPath() %>/resources/js/cart/jquery.easydropdown.js"></script>
    <script type="application/javascript">
        function goCart(){
            document.getElementById("goodsForm").action="<%=request.getContextPath()%>/cart/userCartList"
            document.getElementById("goodsForm").submit();

        }
    </script>
</head>
<body>
<%@include file="/jsp/public/top.jspf"%>
<div class="container-fuild">
    <div id="mainbody">
    <form method="get" id="goodsForm" action="/userCartList" >
        <div class="goodsinfo pull-left">
            <a href="#"><img class="a" id="img1" src="<%=request.getContextPath() %>/resources/images/s-img1.jpg" alt="" rel="images/s-img1.jpg" /></a>
        </div>
        <div style="height: 150px" >
            <div class="item-info" style="float: left; margin-left: 40px">
                <h4 style="color: #9c9c9c">${usercart.goods.name}</h4>
                <br><br><br>
                <span >CPU:${usercart.goods.CPU}</span>
                <span >内存:${usercart.goods.RAM}</span>
                <span >硬盘:${usercart.goods.HD}</span>
                <span >显卡:${usercart.goods.graphic}</span><br>
                <span >数量:${usercart.quantity}</span><br>
               <span >单价:${usercart.goods.price}元</span><br>
               <span style="font-size: 30px;color: red">小计:￥${usercart.subtotal}</span>
            </div>
    		<div style="float: right; margin-top: 50px; margin-right: 200px">
				<div style="margin-left: 20px">
                    <img src="<%=request.getContextPath() %>/resources/images/addincart.png"/>
                    <%--<strong>已成功加入购物车</strong>--%>
                </div>
                <div style="margin-top: 15px">
                    <button class="btn btn-info btn-lg" type="button"onclick="javascript:history.back(-1)">返回商品详情</button>
                    <button class="btn btn-info btn-lg" type="button" onclick="goCart()">去购物车结算</button>
                </div>
            </div>
        </div>
    </form>
    </div>

</div>
<%@include file="/jsp/public/footer.jspf"%>
</body>
</html>